/**
 *
 */
package com.zhuoyue.elmt.entity;

import org.hibernate.validator.constraints.Length;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import com.eit.eitsite.common.persistence.DataEntity;

/**
 * 保险记录Entity
 * @author JiangYH
 * @version 2017-04-25
 */
public class WbInsuranceRecord extends DataEntity<WbInsuranceRecord> {
	
	private static final long serialVersionUID = 1L;
	private String insuranceOrg;		// 保险公司
	private String insuranceTel;		// 理赔电话
	private Date insuranceDate;		// 保险期限
	private String insuranceNo;		// 保险单号
	private String remark;		// 备注
	private String tzsbbh;		// 设备ID
	private String sbzcdm;		// 设备注册代码
	
	public WbInsuranceRecord() {
		super();
	}

	public WbInsuranceRecord(String id){
		super(id);
	}

	@Length(min=1, max=100, message="保险公司长度必须介于 1 和 100 之间")
	public String getInsuranceOrg() {
		return insuranceOrg;
	}

	public void setInsuranceOrg(String insuranceOrg) {
		this.insuranceOrg = insuranceOrg;
	}
	
	@Length(min=0, max=100, message="理赔电话长度必须介于 0 和 100 之间")
	public String getInsuranceTel() {
		return insuranceTel;
	}

	public void setInsuranceTel(String insuranceTel) {
		this.insuranceTel = insuranceTel;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getInsuranceDate() {
		return insuranceDate;
	}

	public void setInsuranceDate(Date insuranceDate) {
		this.insuranceDate = insuranceDate;
	}
	
	@Length(min=0, max=100, message="保险单号长度必须介于 0 和 100 之间")
	public String getInsuranceNo() {
		return insuranceNo;
	}

	public void setInsuranceNo(String insuranceNo) {
		this.insuranceNo = insuranceNo;
	}
	
	@Length(min=0, max=100, message="备注长度必须介于 0 和 100 之间")
	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}
	
	@Length(min=0, max=100, message="设备ID长度必须介于 0 和 100 之间")
	public String getTzsbbh() {
		return tzsbbh;
	}

	public void setTzsbbh(String tzsbbh) {
		this.tzsbbh = tzsbbh;
	}
	
	@Length(min=0, max=100, message="设备注册代码长度必须介于 0 和 100 之间")
	public String getSbzcdm() {
		return sbzcdm;
	}

	public void setSbzcdm(String sbzcdm) {
		this.sbzcdm = sbzcdm;
	}
	
}